home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: Larry Weiss <lfw@iadfw.net>
- Newsgroups: comp.lang.c
- Subject: Re: Newbie doesn't understand compiler error
- Date: Sat, 02 Mar 1996 10:05:10 -0600
- Organization: ...
- Message-ID: <313871B6.18D3@iadfw.net>
- References: <Pine.SUN.3.91.960301153010.11258B-100000@pioneer.uspto.gov> <31379F66.7BA7@airmail.net>
- NNTP-Posting-Host: dal12-05.ppp.iadfw.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Mark Nelson wrote:
- >
- > It appears that you are using the portable C compiler, which doesn't support
- > this type of function definition. To get cc to work, you need to change
- > the function definitions to look like this:
- >
- > main( argc, argv )
- > int argc;
- > char *argv[];
- > {
- >
- > This should be a mechanical process that will only take you a little while
- > to master. Unfortunately, it will get you accustomed to an obsolete
- > idiom.
- >
-
- Good point. I had not realized that "not prototype-format parameter type
- declarators" are actually formally "obsolescent" as specified in Clause 6.9 (6.9.4
- and 6.9.5) of the Standard.
-